<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Notice extends Model
{
    protected $table='notice';
    protected $guarded = [];

    public function getReleaseAttribute($value)
    {
        return explode(',', $value);
    }

    public function setReleaseAttribute($value)
    {
        $this->attributes['release'] = implode(',', $value);
    }
}